package cn.edu.bjfu.practice.practice.teacher.dao;

import cn.edu.bjfu.practice.practice.teacher.pojo.domain.Student;
import cn.edu.bjfu.practice.practice.teacher.pojo.vo.CourseStudentView;
import cn.edu.bjfu.practice.practice.teacher.pojo.vo.LeaderView;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface StudentDao extends BaseMapper<Student> {

    /**
     * 查询某一课程下所有学生
     * @param course_id
     * @return
     */
    public List<CourseStudentView> getStudentByCourse(Integer course_id);

    /**
     * 查找该班课下所有没进入小组的人，当组长候选人
     * @param course_id
     * @return
     */
    public List<LeaderView> getTeamLeaders(Integer course_id);
}
